
#include "mainwindow.h"
#include "ui_mainwindow.h"


MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}



void MainWindow::on_chooseA_clicked()
{
    this->hide();
    Ain *a=new Ain;//堆空间创建
    a->show();
}


void MainWindow::on_chooseB_clicked()
{
    this->hide();
    Bin *c=new Bin;
    c->show();
}


void MainWindow::on_chooseC_clicked()
{
    this->hide();
    Hun *b=new Hun;
    b->show();
}

